<?
include '../Module/newsModule.php';
include '../Module/SystemModule.php';
$sysModule=new SystemModule();
$paras=$sysModule->gets();
$n=100;
$newModule=new newsModule();
if(isset($_REQUEST["id"]))$_SESSION["MOREID"]=$_REQUEST["id"];
$id=$_SESSION["MOREID"];
$item=$newModule->getNew($id);
if($item["image"]) $small_img=$item["image"];
if($item["small_image"]) $small_img=$item["small_image"];
$insert = new DateTime($item["insert"]);
?>
<div class="slogan">MORE</div>
<div class="box">
    <div class="subbox">
        <h1><?=$item["title"]?></h1><br/>
        
        <div style="<?=$paras["more_height"]?>">
            <div>

                <h2><?=$item["title_second"]?></h2>
                <div class="small-time">Đăng lúc : <?=$item["insert"]?></div>
                <?
                if($small_img){
                    ?>
                        <div class="img-news" style="">
                            <div class="time_block" style="position: absolute;top: 4px;left: 4px;">
                                <?=date_format($insert,"d")?><br>
                                <span><?=date_format($insert,"M")?></span>
                            </div>
                            <a href="<?=$small_img?>" rel="prettyPhoto[album_<?=$item["album"]?>]">
                                <img src="<?=$small_img?>"/>
                            </a>
                        </div>
                        <?
                }
                ?>
                <h3><?=$item["brief"]?></h3>
                <div class="clear"></div><br/>
                <?=$item["content"]?>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function() {
        $("a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'dark_square',social_tools:false,allow_resize: true,default_width: 500,default_height: 344});
    });
</script>